package com.dingwen.spsest.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dingwen.spsest.entity.RoleEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * role service
 *
 * @author dingwen
 * 2021.05.18 15:42
 */
public interface RoleService extends IService<RoleEntity> {
    /**
     * 根据用户ID查询角色
     *
     * @param userId 用户id
     * @return {@link List <RoleEntity>}
     */
    List<RoleEntity> selectRoleByUserId(Integer userId);
}
